#ifndef SINGLETON_H
#define	SINGLETON_H

template <class T>
class Singleton
{
public:
	static T* Instance()
	{
		static T t; //only gets created once.
		return &t;	//returns address of that object created
	}
};

#endif

